//
//  MapViewController.h
//  DNDzgz
//
//  Created by gimenete on 28/04/10.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <MapKit/MapKit.h>
#import "MyAnnotation.h"
#import "DetailsView.h"
#import "MBProgressHUD.h"
#import "JSON.h"

@interface MapViewController : UIViewController <MKMapViewDelegate, MBProgressHUDDelegate>
{
	// The map
	IBOutlet MKMapView *mapView;
	// NSString containing the service key. e.g. bizi, bus, wifi
	NSString *serviceKey;
	// The response to the HTTP request to retrieve all the points in the map
	NSMutableData *responseData;
	// The HUD shown while loading
	MBProgressHUD *hud;
	BOOL localized;
	UIBarButtonItem *centerButton;
}

- (id)initWithService:(NSString *) service;
- (void)setSearchingStatus:(BOOL)isSearching;
- (BOOL)containsString:(NSString *)aString inOriginalNSSString:(NSString *)originalStr;
- (void)moveToUserLocation;
- (void)loadAnnotations;
- (void)loadData:(NSString *) responseString;

@property (nonatomic, retain) IBOutlet MKMapView *mapView;
@end